package edu.zut.software.identity.Service;

import edu.zut.software.identity.domain.StuMajor;
import edu.zut.software.identity.domain.Student;
import edu.zut.software.identity.domain.Teacher;
import edu.zut.software.identity.domain.TeacherInfo;
import org.springframework.data.domain.Page;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface TeacherService {
    Teacher findById(String id);
    List<Teacher> findAll();
    void deleteById(String  id);
    Teacher save(Teacher teacher);
    boolean isExists(String id);
    Page<Teacher> findAll(Integer page, Integer pageSize);
    Page<TeacherInfo> findAll(Integer page, Integer pageSize, TeacherInfo teacherInfo);
    List<Map<Date, Integer>> getCount();
}
